package org.particlethink.model;

import org.particlethink.handler.ArrayIntegerTypeHandler;
import tk.mybatis.mapper.annotation.ColumnType;

import java.util.List;

public class User {

    private Integer userId;
    private String username;
    private String phone;
    @ColumnType(typeHandler = ArrayIntegerTypeHandler.class)
    private List<Integer> projectIds;
    @ColumnType(typeHandler = ArrayIntegerTypeHandler.class)
    private List<Integer> supplierIds;
    private Integer companyId;
    private String token;



    private String userType;
    private String deptName;
    private String nickName;
    private String email;

    public Integer getUserId() {
        return userId;
    }

    public User() {
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public List<Integer> getProjectIds() {
        return projectIds;
    }

    public void setProjectIds(List<Integer> projectIds) {
        this.projectIds = projectIds;
    }

    public List<Integer> getSupplierIds() {
        return supplierIds;
    }

    public void setSupplierIds(List<Integer> supplierIds) {
        this.supplierIds = supplierIds;
    }

    public Integer getCompanyId() {
        return companyId;
    }

    public void setCompanyId(Integer companyId) {
        this.companyId = companyId;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getUserType() {
        return userType;
    }

    public void setUserType(String userType) {
        this.userType = userType;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }
}
